<div class="modal-header">
    <h3 class="modal-title">添加页面</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal form-content page-add-container" name="page_Form">
        <div class="form-group">
            <label for="page_name" class="control-label col-xs-2">页面名称</label>
            <div class="col-xs-10">
                <input type="text" ng-model="item.page_name" class="form-control"
                       required name="page_name" id="page_name" placeholder="指标名称">
            </div>
        </div>
        <div class="form-group">
            <label for="page_type" class="control-label col-xs-2">布局类型</label>
            <div class="col-xs-10">
                <select class="form-control" name="page_type" id="page_type"
                        ng-options="t.value as t.text for t in layoutTypes"
                        ng-model="item.page_type_id"></select>
            </div>
        </div>
        <div class="form-group">
            <label for="page_home" class="control-label col-xs-2">是否首页</label>
            <div class="col-xs-10">
                <div class="checkbox checkbox-success">
                    <input type="checkbox" ng-model="item.page_home_bool"
                           class="form-control page_home_bool" name="page_home" id="page_home">
                    <label for="page_home">
                        首页
                    </label>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button"
            ng-disabled="page_Form.page_name.$invalid || page_Form.page_home.$invalid"
            ng-click="ok()">确认</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>